Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

The test will fail if libc++ starts to use a lambda in <array>. This will become the case because

  • libc++'s array::fill uses std::fill_n, and
  • std::fill_n is to be optimized for segment iterators, and
  • the natural approach for such optimization uses lambdas.

Until ASTImport of clang::LambdaExpr nodes gets properly fix, this will need to be skipped.

The test will fail if libc++ starts to use a lambda in `<array>`. This will become the case because
- libc++'s `array::fill` uses `std::fill_n`, and
- `std::fill_n` is to be optimized for segment iterators, and
- the natural approach for such optimization uses lambdas.

Until ASTImport of `clang::LambdaExpr` nodes gets properly fix, this will need to be skipped.
@llvmbot
Copy link
Member

llvmbot commented Oct 16, 2025

@llvm/pr-subscribers-lldb

Author: A. Jiang (frederick-vs-ja)

Changes

The test will fail if libc++ starts to use a lambda in &lt;array&gt;. This will become the case because

  • libc++'s array::fill uses std::fill_n, and
  • std::fill_n is to be optimized for segment iterators, and
  • the natural approach for such optimization uses lambdas.

Until ASTImport of clang::LambdaExpr nodes gets properly fix, this will need to be skipped.


Full diff: https://github.com/llvm/llvm-project/pull/163735.diff

1 Files Affected:

  • (modified) lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py (+3)
diff --git a/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
index ed028a1a4ea3f..4aea8009058b9 100644
--- a/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
@@ -11,6 +11,9 @@ class TestCase(TestBase):
     @add_test_categories(["libc++"])
     @skipIf(compiler=no_match("clang"))
     @skipIf(macos_version=["<", "15.0"])
+    @skipIf(
+        bugnumber="ASTImport of lambdas not supported: https://github.com/llvm/llvm-project/issues/149477"
+    )
     def test(self):
         self.build()
 

Copy link
Member

@Michael137 Michael137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! unfortunate but has to be done

@frederick-vs-ja frederick-vs-ja enabled auto-merge (squash) October 16, 2025 11:00
@frederick-vs-ja frederick-vs-ja merged commit e764b6d into llvm:main Oct 16, 2025
13 checks passed
@frederick-vs-ja frederick-vs-ja deleted the lldb-api-skip-std-array branch October 16, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants